﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kjxymaster.master" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="kjxy_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="main">
	    <div class="left">
		    <div class="title">
			    <%=parent_name %>
		    </div>
		    <div class="content">
                 <ul>
                    <%
                        
                        foreach (Forums aF in fs)
                        {
                            if (aF.Name.Equals(fourm_name))
                            { 
                        %>
                                <li><a href='list.aspx?fourm_id=<%=aF.ID %>' style=" background:url(images/ico_03.jpg) no-repeat;"><strong><%=aF.Name%></strong></a></li>

                        <%          
                                }
                            else
                            { 
                        %>
                                <li><a href='list.aspx?fourm_id=<%=aF.ID %>'><%=aF.Name%></a></li>
                        <%     
                                }
                        }
                          
                     %>


                    
                </ul>
		    </div>
	    </div>
	    <div class="right">
		    <div class="title">
			    <%=fourm_name %>
		    </div>
            <form runat="server">
		    <div class="content">
                <ul>
                   <asp:Repeater ID="Repeater2" runat="server">
                        <ItemTemplate>
                            <li class="ico"><img src="../kjxywz/images/ico.jpg" /></li>
				            <li class="cont">
					            <a href='detail.aspx?article_id=<%#Eval("id") %>'><%#Eval("subtitle").ToString().Length>44?Eval("subtitle").ToString().Substring(0,43)+"...":Eval("subtitle") %></a>
				            </li>
				            <li class="date">
					            <%#string.Format("{0:yyyy/MM/dd}",Eval("published")) %>
				            </li>
			            </ItemTemplate>
                    </asp:Repeater>
               </ul>       
                    
                <asp:Label ID="Label1" runat="server" Text="0/0"></asp:Label>
                <asp:Button ID="Button1" runat="server" Text="第一页" onclick="Button1_Click" />
                <asp:Button ID="Button2"
                    runat="server" Text="上一页" onclick="Button2_Click" />
                <asp:Button ID="Button3" runat="server" 
                    Text="下一页" onclick="Button3_Click" />
                <asp:Button
                        ID="Button4" runat="server" Text="最后一页" onclick="Button4_Click" />
		    </div>
            </form>
	    </div>
    </div>
</asp:Content>

